import { RoadApi } from '@/api'
import CommonModel from './common'

class RoadModel extends CommonModel {
    constructor() {
        super()
        this.api = new RoadApi()
    }
    // 获取公路列表数据
    async getRoads(data = { pageNo: 1, pageSize: 1000 }) {
        const res = await this.api.getRoads(data)
        return res
    }

    // 根据公路、方向、桩号查询桩号是否在公路范围内
    checkStake(data) {
        return this.api.checkStake(data)
    }
}

export default RoadModel
